package pkg

import (
	"crypto/md5"
	"encoding/hex"
)

// 盐值加密
func SaltMd5(salt string, password string) string {
	hash := md5.New()
	hash.Write([]byte(password + salt))
	return hex.EncodeToString(hash.Sum(nil))
}
